home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / rz.xml < prev    next >
Text File  |  2002-08-30  |  4KB  |  97 lines

  1. <search function="rz">
  2.   <name>RhymeZone</name>
  3.   <description>
  4.     RhymeZone is an online tool that aspires to be the best and fastest way for writers to find words.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/rhymes</td><td> - Rhymes (default)</td></tr>
  8.       <tr><td>/antonyms</td><td> - Antonyms</td></tr>
  9.       <tr><td>/consonants</td><td> - Match consonants only</td></tr>
  10.       <tr><td>/definition</td><td> - Definition</td></tr>
  11.       <tr><td>/homophones</td><td> - Homophones</td></tr>
  12.       <tr><td>/phrases</td><td> - Phrases</td></tr>
  13.       <tr><td>/quotations</td><td> - Quotations</td></tr>
  14.       <tr><td>/related</td><td> - Related</td></tr>
  15.       <tr><td>/shakespeare</td><td> - Search in Shakespeare</td></tr>
  16.       <tr><td>/sound_similar</td><td> - Similar sounding words</td></tr>
  17.       <tr><td>/spelling_similar</td><td> - Similar spellings</td></tr>
  18.       <tr><td>/synonyms</td><td> - Synonyms</td></tr>
  19.     </table>
  20.     <div class="helpboxDescLabels">Examples:</div>
  21.     <table class="helpboxDescTable">
  22.     </table>
  23.   </description>
  24.   <category>Reference</category>
  25.   <link>http://rhyme.lycos.com/</link>
  26.   <contributor>Glenn Carr</contributor>
  27.   
  28.   <form name="rzf"
  29.         action="http://rhyme.lycos.com//r/rhyme.cgi"
  30.         method="get">
  31.     <input type="hidden" name="Word" value="" />
  32.     <input type="hidden" name="typeofrhyme" value="perfect" />
  33.     <input type="hidden" name="org1" value="syl" />
  34.     <input type="hidden" name="org2" value="l" />
  35.   </form>
  36.   <script><![CDATA[
  37.     function rz(q)
  38.     {
  39.       if( nullArgs("rz", q) )
  40.         return false;
  41.  
  42.       var args = parseArgs(q, "rhymes, synonyms, antonyms, definition, related, sound_similar, homophones, consonants, phrases, spelling_similar, shakespeare, quotations");
  43.  
  44.       document.rzf.typeofrhyme.value = "perfect";
  45.       document.rzf.Word.value = q;
  46.  
  47.       if( q == "" )
  48.       {
  49.         openSearchWindow("http://rhyme.lycos.com/");
  50.       }
  51.       else if( args.switches.length >= 1 )
  52.       {
  53.         for ( var i = 0; i < args.switches.length; i++ )
  54.         {
  55.           switch( args.switches[0].name )
  56.           {
  57.             case "synonyms":
  58.               document.rzf.typeofrhyme.value = "syn"; break;
  59.             case "antonyms":
  60.               document.rzf.typeofrhyme.value = "ant"; break;
  61.             case "definition":
  62.               document.rzf.typeofrhyme.value = "def"; break;
  63.             case "related":
  64.               document.rzf.typeofrhyme.value = "rel"; break;
  65.             case "sound_similar":
  66.               document.rzf.typeofrhyme.value = "sim"; break;
  67.             case "homophones":
  68.               document.rzf.typeofrhyme.value = "hom"; break;
  69.             case "consonants":
  70.               document.rzf.typeofrhyme.value = "cons"; break;
  71.             case "phrases":
  72.               document.rzf.typeofrhyme.value = "sub"; break;
  73.             case "spelling_similar":
  74.               document.rzf.typeofrhyme.value = "spell"; break;
  75.             case "shakespeare":
  76.               document.rzf.typeofrhyme.value = "shake"; break;
  77.             case "quotations":
  78.               document.rzf.typeofrhyme.value = "quotes"; break;
  79.             case "rhymes":
  80.             default:
  81.           }
  82.         }
  83.         document.rzf.Word.value = args.q;
  84.       }
  85.  
  86.       submitForm( rzf );
  87.     }
  88.   ]]>
  89.   </script>
  90.  
  91.   <copyright>
  92.     Copyright (c) 2002 David Bau
  93.     Distributed under the terms of the
  94.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  95.   </copyright>
  96. </search>
  97.